/**
 * A central base figure. extends Building.
 * This class represent the player's main base. every enemy unit that intersects the player's reduces its hit points.
 * @authors Itay Sorani, Nadav Ziv, Yonathan Zarsky
 */

package com.example.models.Buildings;

import android.content.Context;

import com.example.models.Building;

public class CentralBase extends Building {
	
	// central base has no production
	private static final int CENTRAL_BASE_PRODUCTION_RATE = Integer.MAX_VALUE;
	// initial hit points
	private static final int CENTRAL_BASE_HIT_POINTS = 50;
	// the building's name
	private static final String CENTRAL_BASE_NAME = "CentralBase";
	// the hit points of the central base
	private int hitPoints;
	
	/**
     * Constructs a CentralBase and sets its variables.
     */
	public CentralBase(Context context) {
		super(context);
		setProductionRate(CENTRAL_BASE_PRODUCTION_RATE);
		setHitPoints(CENTRAL_BASE_HIT_POINTS);
		setName(CENTRAL_BASE_NAME);
	}

	/**
     * sets the central base hit points.
     */
	public void setHitPoints(int hitPoints) {
		this.hitPoints = hitPoints;
	}

	/**
     * returns the central base hit points.
     */
	public int getHitPoints() {
		return hitPoints;
	}
	
}
 
